determining tone mood and purpose of a text